<template>
    <div class="loadingasdfsf1011">
      <div class="loading-spinnervgngvb"></div>
      <div class="loading-textvvfdfd">{{ text }}</div>
    </div>
  </template>
  
  <script>
  export default {
    name: 'Loading',
    props: {
      text: {
        type: String,
        default: '加载中...'
      }
    }
  }
  </script>
  
  <style scoped>
  .loadingasdfsf1011 {
    position: absolute;
    top: 0px;
    left: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    /* background-color: #041d3a; */
  }
  
  .loading-spinnervgngvb {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #56b3f1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 2s linear infinite;
  }
  
  .loading-textvvfdfd {
    margin-left: 10px;
    font-size: 14px;
    color: #fff;
    margin-top: 10px;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  </style>